package lzm.selector;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import java.util.function.Predicate;

//自定义逻辑返回需要导入的
public class ColorSelector implements ImportSelector {
    //返回值就是需要导入到容器中的组件全类名
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"lzm.entity.importSel.Black","lzm.entity.importSel.Blue"};
    }

    @Override
    public Predicate<String> getExclusionFilter() {
        return null;
    }
}
